<?php


namespace App\Models;


use Illuminate\Database\Eloquent\Model;

class MiyouUser extends Model
{

    protected $table = 'miyou_user';

    public $timestamps = false;

    protected $fillable = ['miyou_id', 'mobile', 'hide_mobile', 'nick_name', 'state'];


    public static function getMiyouId($mobile){
        $user = self::query()->where("mobile", $mobile)->first();
        return $user ? $user->miyou_id : null;
    }



}
